package com.jonah.io;

import java.io.InputStream;

/**
 * @Author: Jonah.Chen
 * @Date: 2020/8/5 21:41
 * @Description:
 */
public class Resources {

    /**
     * 根据配置文件的路径将配置文件加载为字节输入流存储到内存当中
     * @param path
     * @return
     */
    public static InputStream getResourceAsStream(String path) {
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }

}